<?php
namespace Shop\Lib;

/**
 * 店铺模块 - 模块间接口
 * @author	Baiyu	2017-02-13
 *
 */
class ImiLib {

	// 根据店的ID 获取 店的信息
	public static function getShopById($shop_id) {
		$shopModel = D('Shop/Shop');
		$where['shop_id'] = $shop_id;
		$shopInformation = $shopModel->where($where)->find();
		return $shopInformation;
	}

	// 获取全部店的信息
	public static function getShops(){
		$shopModel = D('Shop/Shop');
		$shopInformation = $shopModel->select();
		return $shopInformation;
	}
	
}